package com.lollipop.shiro.service.impl;

import com.lollipop.shiro.mapper.UserMapper;
import com.lollipop.shiro.model.User;
import com.lollipop.shiro.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: J.K
 * @Date: 2021-06-02 14:54
 * @Description:
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    /**
     * 根据用户名查询用户信息
     *
     * @param username
     * @return
     */
    @Override
    public User findByUsername(String username) {
        return userMapper.findByUsername(username);
    }
}
